package com.atguigu.gmall.product.service.impl;

import com.atguigu.gmall.model.product.BaseTrademark;
import com.atguigu.gmall.product.mapper.BaseTrademarkMapper;
import com.atguigu.gmall.product.service.TradeMarkservice;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TradeMarkserviceImpl implements TradeMarkservice {

    @Autowired
    private BaseTrademarkMapper baseTrademarkMapper;

    @Override
    public IPage getBaseTrademark(Integer page, Integer limit) {
        return baseTrademarkMapper.selectPage(new Page<>(page,limit), null);
    }

}
